﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hands.Unit.DataBaseHelper
{
    public interface IOperation
    {
        void delete<TResult>(TResult module) where TResult : class;
        void update<TResult>(TResult module) where TResult : class;
        void insert<TResult>(TResult module) where TResult : class;
        void insert<TResult>(IEnumerable<TResult> modules) where TResult : class;

        TResult selectOne<TResult, TQuery>(TQuery queryConditions)
            where TResult : class
            where TQuery : class;
        IEnumerable<TResult> select<TResult, TQuery>(string jsonQueryConditions)
            where TResult : class
            where TQuery : class;
        IEnumerable<TResult> select<TResult, TQuery>()
            where TResult : class
            where TQuery : class;
    }
}

